#@layout()

#define css()
<style type="text/css">


</style>
#end

#define main()
<!--startprint-->
<div id="tempPrint" class="chartbox">
    <table style="width: 100%" cellpadding="0" cellspacing="0" border="1">

        <tbody>
        <tr style="display: none" class="#">
            <td style="text-align: center; width:5%" class=" #">#(data.num??)</td>
            <td style="text-align: center; width:5%" class=" #">#(data.entity_name??)</td>
            <td style="text-align: center; width:20%" class=" #">#(data.entity_name??)</td>
            <td style="text-align: center; width:5%" class=" #">#(data.material??)</td>
            <td style="text-align: center; width:5%" class=" #">#(data.unit??)</td>
            <td style="text-align: center; width:10%" class=" #">#(data.amount??)</td>
            <td style="text-align: center; width:10%" class=" #">#(data.price??)</td>
            <td style="text-align: center; width:10%" class=" #">#(data.carriage??)</td>
            <td style="text-align: center; width:10%" class=" #">#(data.sum_money??)</td>
            <td style="text-align: center;" class=" #">#(data.remark??)</td>
        </tr>

            <tr class="table-row">
                <th colspan="10" class=" #"><span style="font-weight: bold;font-size: 20px;">#(company??)</span></th>
            </tr>
            <tr class="table-row">
                <th colspan="10" class=" #">#(address??)</th>
            </tr>
            <tr class="table-row">
                <th colspan="10" class=" #"><span style="font-weight: bold;font-size: 20px;">#(orderTitle??)</span></th>
            </tr>
            <tr class="table-row">
                <th colspan="2" class=" #">客户名称：</th>
                <th colspan="3" class=" #">#(customer.customerName??)</th>
                <th colspan="1" class=" #">客户电话：</th>
                <th colspan="2" class=" #">#(customer.phone??)</th>
                <th colspan="1" class=" #">制单人：</th>
                <th colspan="1" class=" #">#(madeBy??)</th>
            </tr>
            <tr class="table-row">
                <th colspan="1" class=" #">地址：</th>
                <th colspan="7" class=" #">#(customer.addr??)</th>
                <th colspan="1" class=" #">送货日期：</th>
                <th colspan="3" class=" #">#(postTime??)</th>
            </tr>
            <tr class="table-row">
                <th class=" #">序号</th>
                <th colspan="2" class=" #">产品名称</th>
                <th class=" #">材质</th>
                <th class=" #">单位</th>
                <th class=" #">数量</th>
                <th class=" #">单价</th>
                <th class=" #">运费</th>
                <th class=" #">总价</th>
                <th class=" #">备注</th>
            </tr>
            #for(data:details)
            <tr class="#">
                <td style="text-align: center;" class=" #">#(data.num??)</td>
                <td style="text-align: center;" colspan="2" class=" #">#(data.entity_name??)</td>
                <td style="text-align: center;" class=" #">#(data.material??)</td>
                <td style="text-align: center;" class=" #">#(data.unit??)</td>
                <td style="text-align: center;" class=" #">#(data.amount??)</td>
                <td style="text-align: center;" class=" #">#(data.price??)</td>
                <td style="text-align: center;" class=" #">#(data.carriage??)</td>
                <td style="text-align: center;" class=" #">#(data.sum_money??)</td>
                <td style="text-align: center;" class=" #">#(data.remark??)</td>
            </tr>
            #end
            <tr class="table-row">
                <td style="text-align: center;" colspan="2" class=" #">总运费:</td>
                <td style="text-align: center;" colspan="3" class=" #">#(order.carriage)</td>
                <td style="text-align: center;" colspan="2" class=" #">付款方式:</td>
                <td style="text-align: center;" colspan="6" class=" #">#(settleWay??)</td>
            </tr>
            <tr class="table-lastrow">
                <td style="text-align: center;" colspan="3" class=" #">总计金额：</td>
                <td style="text-align: center;" colspan="4" class=" #">RMB#(totalMoney??)</td>
                <td style="text-align: center;" colspan="3" class=" #">#(order.totalAmount)</td>
            </tr>
            <tr class="table-row">
                <td style="text-align: center;" colspan="10" class=" #">注：以上货品请核对数量，如有质量问题，请在收货三天内通知本公司，逾期恕不负责。</td>
            </tr>
            <tr class="table-row">
                <td style="text-align: center;" colspan="5" class=" #">收货单位及经手人（盖章）：</td>
                <td style="text-align: center;" colspan="5" class=" #"></td>
            </tr>
        </tbody>

    </table>
</div>
<!--endprint-->
#end

#define js()
<script type="text/javascript">
    var callbackdata = function () {
    debugger;
    var tempPrint = document.getElementById("tempPrint").innerHTML;
    return tempPrint;
}
</script>
#end

